<?php
class downloadMod extends commonMod{

	public function index(){

		$cid = intval($_GET['type']);
		if (empty($cid)) $cid=970;
		// 下载列表
		$arr = __query("SELECT * FROM {tabpre}download WHERE `show`=1 and `recover`=0 and classid='".$cid."' order by id desc");


		$classarr = __query("select * from {tabpre}class where SystemID=103 ");
		$this->assign("classarr", $classarr);
		$this->assign("cid", $cid);
		$this->assign("arr", $arr);
		$this->display();
	}
}